@extends('admin.public.admin')
@section('main')


<!-- 内容 -->
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
         <span>网站配置</span>
    </div>

      <div class="mws-panel-body no-padding">
           <form class="mws-form" action="/admin/sys/config" method="post" enctype='multipart/form-data'>
           {{csrf_field()}}
           <input type="hidden" name='id' value="{{$data['id']}}">
                <div class="mws-form-inline">
                     <div class="mws-form-row">
                          <label class="mws-form-label">标题</label>
                          <div class="mws-form-item">
                               <input type="text" class="large" name="title" value="{{$data['title']}}">
                          </div>
                     </div>

                     <div class="mws-form-row">
                          <label class="mws-form-label">关键字</label>
                          <div class="mws-form-item">
                               <input type="text" class="large" name="keywords" value="{{$data['keywords']}}">
                          </div>
                     </div>
                    
                    <div class="mws-form-row">
                            <label class="mws-form-label">描述</label>
                            <div class="mws-form-item">
                              <textarea rows="" cols="" class="large" name="description">{{$data['description']}}</textarea>
                            </div>
                    </div>

	         
                   	 <div class="mws-form-row">
                      <label class="mws-form-label">图片</label>
                          <div class="mws-form-item">
                             <img width="192px" style="height:37px" src="{{$data['logo']}}" alt="">
                            <input type="file" name="logo">
                            </div>
                           
                      </div>
          
                 
                  @if($data['statu'])
                     <div class="mws-form-row">
                          <label class="mws-form-label">网站状态</label>
                          <div class="mws-form-item clearfix">
                               <ul class="mws-form-list inline">
                                    <li><input type="radio" name="statu" value="1"  checked> <label>是</label></li>
                                    <li><input type="radio" name="statu" value="0"> <label>否</label></li>                                       
                               </ul>
                          </div>
                     </div>

                @else

                      <div class="mws-form-row">
                          <label class="mws-form-label">是否启用</label>
                          <div class="mws-form-item clearfix">
                               <ul class="mws-form-list inline">
                                    <li><input type="radio" name="statu" value="1"  > <label>是</label></li>
                                    <li><input type="radio" name="statu" value="0" checked> <label>否</label></li>                                       
                               </ul>
                          </div>
                     </div>

                @endif
                </div>
                <div class="mws-button-row">
                     <input type="submit" value="修改" class="btn btn-danger">
                     <input type="button" class="btn btn-danger" onclick="history.go(-1)" value="返回">
                </div>
           </form>
      </div>         
  </div>


@endsection